package com.rockfalldefence.sw.embark.client;

import net.binarymuse.gwt.client.ui.wizard.Wizard;
import net.binarymuse.gwt.client.ui.wizard.Wizard.ButtonType;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.rockfalldefence.sw.embark.client.page.CalcoloImpattoPage;
import com.rockfalldefence.sw.embark.client.page.CalcoloPenetrazionePage;
import com.rockfalldefence.sw.embark.client.page.CalcoloSpanciamentoPage;
import com.rockfalldefence.sw.embark.client.page.CoefficientiTraiettorie;
import com.rockfalldefence.sw.embark.client.page.MaterialePage;
import com.rockfalldefence.sw.embark.client.page.TraiettoriaPage;
import com.rockfalldefence.sw.embark.client.page.TraiettoriaPage2;
import com.rockfalldefence.sw.embark.client.page.VerificaScavalcamentoPage;
import com.rockfalldefence.sw.embark.client.page.VerifichePage;
import com.rockfalldefence.sw.embark.client.page.WelcomePage;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class RDEmbark implements EntryPoint {

	@Override
	public void onModuleLoad() {
		  Wizard<RDEmbarkContext> wizard =
		        new Wizard<RDEmbarkContext>("RD Embankment WIZARD", new RDEmbarkContext());
		    wizard.setSize("750px", "350px");
		    wizard.addPage(new WelcomePage());
		    wizard.addPage(new TraiettoriaPage());
		    wizard.addPage(new TraiettoriaPage2());
		    wizard.addPage(new MaterialePage());
		    wizard.addPage(new CoefficientiTraiettorie());
		    wizard.addPage(new CalcoloImpattoPage());
		    wizard.addPage(new VerificaScavalcamentoPage());
		    wizard.addPage(new CalcoloPenetrazionePage());
		    wizard.addPage(new CalcoloSpanciamentoPage());
		    wizard.addPage(new VerifichePage());
		    wizard.setButtonVisible(ButtonType.BUTTON_CANCEL, false);
		    wizard.setButtonEnabled(ButtonType.BUTTON_FINISH, false);
		    
		    RootPanel.get().add(wizard);
		
	}

}
